package example;

import java.util.List;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;

public class LogAnalysis {

	/**
	 * @param args
	 * @throws IOException 
	 */
	public static void main(String[] args) throws IOException {
		File file=new File("logs/192.168.3.29");
		BufferedReader reader=new BufferedReader(new FileReader(file));
		String line="";
		List<Double> list=new ArrayList<Double>();
		int j=0;
		while((line=reader.readLine())!=null){
			String[] strs=line.split("\\s");
			j++;
			if(j>1893){
				break;
			}
			double d=0;
			for(int i=8;i<16;i++)
				d+=Double.valueOf(strs[i]);
			list.add(d);
		}
		for(Double d: list){
			System.out.print(d+"\t");
		}
		reader.close();
	}

}
